#FROM 192.168.120.102/my-admin/openjdk:8-jre-alpine
FROM frolvlad/alpine-java:jdk8-slim
#frolvlad/alpine-java:jdk8-slim是已打包好字体的镜像

MAINTAINER 17855833156@163.com

ARG APP_ENV
ENV APP_ENV ${APP_ENV}
ARG PORT
ENV PORT ${PORT}
ADD target/*.jar /app.jar

ENV JAVA_OPTS="-Dspring.profiles.active=$APP_ENV -Dserver.port=$PORT"

ENTRYPOINT ["sh","-c","java -jar  $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom  /app.jar"]
EXPOSE $PORT
 